import $http from '../utils/request.js'

export function getQuestionList(query) {
	return $http.httpRequest({
		url: '/miniProgramForApplet/questionBank/list',
		data:query
	})
}

export function getQuestionDetail(query) {
	return $http.httpRequest({
		url: '/questions/index',
		data:query
	})
}

export function addQuestionDetail(query) {
	return $http.httpRequest({
		url: '/questions/answer',
		methods:'POST',
		headers: 'application/json',
		data:query
	})
}